package de.gbeine.java.depview;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Launches the Spring context of the DependencyViewer.
 */
public final class Launcher {

    /**
     * The URL to the application context XML.
     */
    private static final String CONTEXT_URL = "app-context.xml";

    /**
     * Standard constructor, satisfy CheckStyle.
     */
    public Launcher() {
        super();
    }

    /**
     * Launches the Spring context.
     */
    public void launch() {
        String[] contextPaths = new String[] {Launcher.CONTEXT_URL};
        new ClassPathXmlApplicationContext(contextPaths);
    }
}
